package cn.edu.scujcc.customofsichuan;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class Second_rdj extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second_rdj);
        Toolbar back = findViewById(R.id.back_secondPage_rdj);
        back.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        View rdj_history = findViewById(R.id.rdj_history);
        View rdj_activity = findViewById(R.id.rdj_activity);
        Intent intent=new Intent(this,thirdPage_Detail.class);
        Bundle bundle=new Bundle();


        rdj_history.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                bundle.putString("title","燃灯节历史渊源");
                bundle.putString("webUrl","file:///android_asset/rdj_history.html");
                intent.putExtras(bundle);
                startActivity(intent);
            }
        });
        rdj_activity.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                bundle.putString("title","燃灯节活动内容");
                bundle.putString("webUrl","file:///android_asset/rdj_activity.html");
                intent.putExtras(bundle);
                startActivity(intent);
            }
        });


    }
}